<?php /* Smarty version Smarty-3.1.8, created on 2012-07-05 15:54:10
         compiled from "C:/xampp/htdocs/ecommerce/www/themes/adm/templates\analytics\wdg_total.tpl" */ ?>
<?php /*%%SmartyHeaderCode:208124ff48b333337c6-62741962%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b5481ee999dd63cad1a0553e8e8767773884b07a' => 
    array (
      0 => 'C:/xampp/htdocs/ecommerce/www/themes/adm/templates\\analytics\\wdg_total.tpl',
      1 => 1341514395,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '208124ff48b333337c6-62741962',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4ff48b3337a483_29862215',
  'variables' => 
  array (
    'lista' => 0,
    'listar' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4ff48b3337a483_29862215')) {function content_4ff48b3337a483_29862215($_smarty_tpl) {?>
<script>

var chart;
$(document).ready(function() {
	chart = new Highcharts.Chart({
		chart: {
			renderTo: 'container',
			plotBackgroundColor: null,
			plotBorderWidth: null,
			plotShadow: false,
            width: 360,
            height: 268
		},
		title: {
			text: 'Acessos x Pageviews'
		},
		tooltip: {
			formatter: function() {
				return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
			}
		},
		plotOptions: {
			pie: {
				allowPointSelect: true,
				cursor: 'pointer',
				dataLabels: {
					enabled: false,
					color: '#000000',
					connectorColor: '#000000',
					formatter: function() {
						return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
					}
				}
			}
		},
		series: [{
			type: 'pie',
			name: 'Browser share',
			data: [
            
                <?php  $_smarty_tpl->tpl_vars['listar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['listar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lista']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['listar']->key => $_smarty_tpl->tpl_vars['listar']->value){
$_smarty_tpl->tpl_vars['listar']->_loop = true;
?>
                    ['Visitas', <?php echo $_smarty_tpl->tpl_vars['listar']->value->getVisits();?>
],
                    ['Pageviews', <?php echo $_smarty_tpl->tpl_vars['listar']->value->getPageviews();?>
],
                <?php } ?>

			]
            
		}]
	});
});

</script>

<div id="container"></div><?php }} ?>